jQuery(function(){var pushy=jQuery('.pushy'),body=jQuery('body'),container=jQuery('#container, .footer-container'),push=jQuery('.push'),siteOverlay=jQuery('.overlay-hide'),pushyClass="pushy-left pushy-open",pushyActiveClass="pushy-active",containerClass="container-push",pushClass="push-push",menuBtn=jQuery('.menu-btn, .pushy a'),menuSpeed=200,menuWidth=pushy.width()+"px";function togglePushy(){body.toggleClass(pushyActiveClass);pushy.toggleClass(pushyClass);container.toggleClass(containerClass);push.toggleClass(pushClass);}
function openPushyFallback(){body.addClass(pushyActiveClass);pushy.animate({left:menuWidth},menuSpeed);container.animate({left:menuWidth},menuSpeed);push.animate({left:menuWidth},menuSpeed);}
function closePushyFallback(){body.removeClass(pushyActiveClass);pushy.animate({left:"-"+ menuWidth},menuSpeed);container.animate({left:"0px"},menuSpeed);push.animate({left:"0px"},menuSpeed);}
if(Modernizr.csstransforms3d){menuBtn.click(function(){togglePushy();});siteOverlay.click(function(){togglePushy();});jQuery('.page-wrapper').click(function(){body.removeClass(pushyActiveClass);pushy.addClass('pushy-left');pushy.removeClass('pushy-open');container.removeClass(containerClass);push.removeClass(pushClass);});}else{pushy.css({left:"-"+ menuWidth});container.css({"overflow-x":"hidden"});var state=true;menuBtn.click(function(){if(state){openPushyFallback();state=false;}else{closePushyFallback();state=true;}});jQuery('.page-wrapper, .tp-bgimg.defaultimg, #main_header_image').click(function(){if(!state){closePushyFallback();state=true;}});siteOverlay.click(function(){if(state){openPushyFallback();state=false;}else{closePushyFallback();state=true;}});}});